<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<jsp:include page = "../metadatos.jsp" flush = "True" />
<html>
    <head>
        <title>CATALOGO DE PRODUCTOS</title>
    </head>
    <body>
        <div class="wrapper">
            <header class="header">
                <img src="./resources/Logo.PNG" />
            </header>
            <jsp:include page = "../menuNavegacion.jsp" flush = "True" />
            <main class="content">
                <form class="formee" method="post" action="./TarryAux?action=nuevaConfiguracionIEPS">
                    <fieldset>
                        <legend>Catalogo Productos</legend>
                        <div class="grid-12-12">
                            <table class="bordered" width="100%">
                                <thead>
                                    <tr>
                                        <th><b>ID</b></th>
                                        <th><b>NOMBRE</b></th>
                                        <th><b>PRECIO</b></th>
                                        <th><b>IEPS</b></th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <c:forEach items="${tarryPrincipal.productos}" var="prod">
                                        <tr >
                                            <td><c:out value="${prod.id}"/></td>
                                            <td><c:out value="${prod.nombre}"/></td>
                                            <td><c:out value="${prod.precio}"/></td>
                                            <td>
                                                <div align="center">
                                                    <input <c:if test="${prod.IEPS==1}">checked="checked"</c:if> name="check_<c:out value="${prod.id}"/>" type="checkbox" value="<c:out value="${prod.id}"/>"/>
                                                    </div>
                                                </td>
                                            </tr>
                                    </c:forEach>
                                </tbody>
                            </table>
                            <!-- -->
                        </div>
                        <div class="grid-5-12">
                            <input type="submit" value="actualizar"/>
                        </div>
                    </fieldset>
                </form>
            </main>
        </div>
    </body>
</html>
<jsp:include page = "../pie.jsp" flush = "True" />
